home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #14
/
Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO
/
netmail
/
yep13.zip
/
YX-11.ZIP
/
GRBQUOTE.DOC
< prev
next >
Wrap
Text File
|
1996-01-28
|
2KB
|
45 lines
GRBQUOTE (Grab Quote) is a very simple little hack of a utility to output
a random section of a text file.
Each section of the quote file (including the first section) must begin with
ten or more dashes (-) starting in the first left hand text column (only the
first ten characters are checked). (See the "QUOTES" file provided, for an
example).
GRBQUOTE will accept a limited number of command line parameters:
/? - a brief summary of command line parameters.
/P<filename> - the path/filename of the "quote" file to read text from.
/S - this will print a brief statistical summary about your quote file
at the bottom of the output section (ie. 'quote')
/L - used with the /S line will output the 'stats' left flushed.
Standard I/O redirection (>) can be used to send the output to a file.
For example. The following command line and output could look like this:
GRBQUOTE /pQUOTES /s
Another blast from Rivenrock shivered the air. It snatched Mhoram's head up,
and he faced Covenant with tears streaming down his cheeks. "It is as I have
said," he breathed achingly. "Madness is not the only danger in dreams."
_The Illearth War_, Stephen R. Donaldson, ch. 26
[Quote #91 of 130 (avg. 16.51 lines)]
The "average" displayed is the average number of lines per quote/section
in the quote/text file.
Info for hackers: you can set the default quote/text file by hex editing
grbquote.exe and entering the path where you find a field of @@@@@@@@@@@'s.
Please leave the trailing @ characters to pad to the end of the string
(maximum 50 characters).
More hacker info: if for some reason you want something other than ten
dashes separating sections of your text file, use a hex editor and find
the ---------- string in the grbquote.exe and change it to whatever you
prefer. It must be ten characters - no other restrictions.
email problems to: as544@torfree.net